import { MICRO_SERVICE_ADMIN } from '~/constants/service-constant.ts'
import type { UserInfoResp } from '~/api/common/model/user-info.ts'

enum Api {
  QueryCurrentUserInfo = '/webservice/user/queryCurrentUserInfo',
}

export function getUserInfoApi() {
  return useGet<UserInfoResp>(MICRO_SERVICE_ADMIN + Api.QueryCurrentUserInfo)
}
